using System;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace PocketGCal
{
    /// <summary>
    /// Program Configuration Object
    /// </summary>
    [XmlRoot("PocketGCal")]
    public class configuration
    {
        /// <summary>
        /// Username for accessing the service
        /// </summary>
        [XmlElement("Username")]
        public String Username;

        /// <summary>
        /// Password for the google account
        /// </summary>
        [XmlElement("Password")]
        public String Password;

        [XmlElement("LastUpdate")]
        public String LastUpdate;

        public String cwd;

        public bool Dirty;


        /// <summary>
        /// Constructor takes the filename of the xml file.
        /// </summary>
        /// <param name="filename"></param>
        public configuration()
        {
            String temppath;
            temppath = System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
            cwd = Path.GetDirectoryName(temppath);
        }

    }
}
